ifeq ($(OS),Windows_NT)
    CURR_DIR_PATH = $(CURDIR)
else
    CURR_DIR_PATH = $(shell pwd)
endif

GCC:=gcc
INC+=-I${CURR_DIR_PATH}/
INC+=-I${CURR_DIR_PATH}/config
SRC+=${CURR_DIR_PATH}/cot_os.c

SRC+=${CURR_DIR_PATH}/examples/main.c


AIM_NAME:=demo

.PHONY:all
all:
	${GCC} ${INC} ${SRC} -U_FORTIFY_SOURCE -o ${CURR_DIR_PATH}/${AIM_NAME} -O3 -std=c99 -g

.PHONY:clean
clean:
	rm -rf ${CURR_DIR_PATH}/${AIM_NAME}%